<template>
  <div class="wrap">
    <div class="box-app">
      <div v-for="item in listData" :key="item.index" class="box">
        <p style="padding-left: 20px; font-size: 14px; justify-content: flex-start; font-weight: 600; color: #909399; background-color: #fafafa;">{{item.item}}</p>
        <p style="padding-right: 20px; font-size: 15px;">{{item.data[0]}}</p>
        <p style="padding-right: 20px; font-size: 15px;">{{item.data[1]}}</p>
        <p style="padding-right: 20px; font-size: 15px;">{{item.data[2]}}</p>
        <p style="padding-right: 20px; font-size: 15px;">{{item.data[3]}}</p>
        <p style="padding-right: 20px; font-size: 15px;">{{item.data[4]}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import { companyFinance } from '@/api/modules/propertyRight.js'
export default {
  data() {
    return {
      listData: [],
      params: {
        startYear: new Date().getFullYear()
      }
    }
  },
  methods: {
    querycompanyFinance(params) {
      let date = new Date()
      const obj = Object.assign(params, this.params)
      companyFinance(obj).then(res => {
        if (res.data.code === '0') {
          this.listData = res.data.body
        }
      })
    }
  }
}
</script>

<style lang="less" scoped>
  .wrap {
    .title {
      padding: 0 0 10px 20px;
    }
    .box-app {
      border-top: 1px solid #EBEEF5;
      border-left: 1px solid #EBEEF5;
      margin-left: 20px;
      .box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #EBEEF5;
        p {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          width: 100%;
          height: 35px;
          font-size: 14px;
          border-right: 1px solid #EBEEF5;
        }
      }
    }
    .box-app>div:first-child {
      color: #909399 !important;
      font-size: 20px !important;
      font-weight: 600 !important;
      background-color: #fafafa;
    }
    .box-app>div:first-child p {
      justify-content: center !important;
    }
  }
</style>
